package eco2automotive.data;
import java.io.*;
 /**  
  * This object contains a Protocol. 
  * This Structure is based on the Protocols.xml file.
  * Structure of XML file:
  * 
  * </br>[protocol]
  * </br>[id]1[/id]
  * </br>[description]SAE J1850 PwM (41.6 Kbaud)[/description]
  * </br>[/protocol]
  * 
  * @version 1.0
  * @autor Fco. Javier Sánchez Esparza
  *
  */ 
public class Protocol implements Serializable{    
    char id;
    String desc;
/** 
* Constructor
 * @param id char 
 * @param desc description
*/
    public Protocol(char id, String desc){
        this.id=id;
        this.desc=desc;
            }
    
/**    
*  @return String that contains the description
*/
    public String getDescription(){return this.desc;} 
/**    
*  @return char of the Protocol id
*/
    public char getId(){return this.id;}  
}
